---
title: GroupCriterion2.GroupOn Property (Project)
ms.prod: project-server
api_name:
- Project.GroupCriterion2.GroupOn
ms.assetid: f67ef37f-0f33-abe5-b79c-e18725a0269e
ms.date: 06/08/2017
---


# GroupCriterion2.GroupOn Property (Project)

Gets or sets the type of grouping for a field used as a criterion in a group definition. Read/write  **Long**. Can be one of the **[PjGroupOn](pjgroupon-enumeration-project.md)** constants.


## Syntax

 _expression_. **GroupOn**

 _expression_ An expression that returns a **GroupCriterion2** object.


## See also


#### Concepts


[GroupCriterion2 Object](groupcriterion2-object-project.md)

